package com.exam.pojo.domain;

import com.exam.pojo.dto.ExamInfo;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Document(collection = "exam_history")
public class ExamHistory {

    @Id
    private ObjectId id;
    //用户标识
    private String uuid;
    private Double rate;
    private Long duration;
    @Field("correct_num")
    private Long correctNum;
    @Field("error_num")
    private Long errorNum;
    @Field("exam_list")
    private List<ExamInfo> examList;
    @Field("create_time")
    private LocalDateTime createTime;
}
